





<div class="fbneirong">
    <form class="am-form jdtask">


        <div class="am-form-group am-cf">
            <div class="zuo">商品链接：</div>
            <input type="hidden" name="id" value="<?php echo $id ?>">
            <div class="you">
                <input type="text" class="myinput am-input-sm"  name="link"    value="<?php echo $link;  ?>"      placeholder="请输入链接">
            </div>
            <!--  <div    id="bufa" class="am-btn am-btn-secondary am-radius">再次发布</div>-->
        </div>
        <div class="am-form-group am-cf">
            <div class="zuo">店铺名：</div>
            <div class="you">
                <input type="text"   name="shop_name" class="myinput am-input-sm" id="doc-ipt-email-1"   value="<?php echo $shop_name;  ?>"    placeholder="请输入商品名称">
            </div>
        </div>

        <div class="am-form-group am-cf">
            <div class="zuo">商品名称：</div>
            <div class="you">
                <input type="text"   name="goods_name" class="myinput am-input-sm" id="doc-ipt-email-1"   value="<?php echo $goods_name;  ?>"    placeholder="请输入商品名称">
            </div>
        </div>


        <div class="am-form-group am-cf">
            <div class="zuo">客单价：</div>
            <div class="you">
                <input type="text"   name="price" class="myinput am-input-sm" id="doc-ipt-email-1"   value="<?php echo $price;  ?>"    placeholder="请输入客单价">
            </div>
        </div>

        <div class="am-form-group am-cf">

            <div class="zuo">开团价格：</div>
            <div class="zuo">
                <input type="text"   name="single_price" class="myinput am-input-sm"  value="<?php echo $single_price; ?>" id="doc-ipt-email-1" placeholder="请输入开团价格">
            </div>

            <div class="zuo">拼团价格：</div>
            <div class="zuo">
                <input type="text"   name="group_price" class="myinput am-input-sm"   value="<?php echo $group_price; ?>" id="doc-ipt-email-1" placeholder="请输入拼团价格">
            </div>



            <div class="zuo">搜索关键字：</div>
            <div class="zuo">
                <input type="text"   name="keyword" class="myinput am-input-sm" id="doc-ipt-email-1" placeholder="请输入关键字" value="<?php echo $keyword; ?>" style="width: 400px;">
            </div>

        </div>


        <div class="am-form-group am-cf">

            <div class="zuo">付款价格：</div>
            <div class="zuo">
                <input type="text"   name="pay_price" class="myinput am-input-sm" id="doc-ipt-email-1"   value="<?php echo $pay_price;  ?>"    placeholder="请输入付款价格">
            </div>
            <div class="zuo">任务单量：</div>
            <div class="zuo">
                <input type="text"   name="number" class="myinput am-input-sm" id="doc-ipt-email-1"   value="<?php echo $number;  ?>"    placeholder="请输入任务单量">
            </div>

            <div class="zuo">每单数量：</div>
            <div class="zuo">
                <input type="text"   name="each_single" class="myinput am-input-sm" id="doc-ipt-email-1"   value="<?php echo $each_single;  ?>"    placeholder="请输入每单数量">
            </div>



        </div>






        <div class="am-form-group am-cf">
            <div class="zuo">购买类型选择：</div>
            <div class="you" style="margin-top: 4px;">
                <label class="am-radio-inline">
                    <input type="radio"  value="1"  <?php   if($pay_type==1){echo'checked '; }  ?>  name="pay_type"> 全部开团
                </label>
                <label class="am-radio-inline">
                    <input type="radio" value="2"   <?php   if($pay_type==2){echo'checked '; }  ?>name="pay_type"> 单独购买
                </label>
                <label class="am-radio-inline">
                    <input type="radio" value="3"  <?php   if($pay_type==3){echo'checked '; }  ?>name="pay_type"> 优先参团
                </label>
                <!-- <div class="zuo">SKU：</div>
                 <div class="zuo">
                     <input type="text"   name="sku" class="myinput am-input-sm" id="doc-ipt-email-1" placeholder="请输入SKU">
                 </div>-->

            </div>
        </div>


        <div class="am-form-group am-cf">
            <div class="zuo">备注说明：</div>
            <div class="you">
                <input type="text"   name="remarks" class="myinput am-input-sm" id="doc-ipt-email-1"   value="<?php echo $remarks;  ?>"    placeholder="请输入备注">
            </div>
        </div>

        <div class="am-form-group am-cf">
            <div class="zuo">SKU：</div>
            <div class="you">
                <input type="text"   name="sku" class="myinput am-input-sm" id="doc-ipt-email-1"  value="<?php echo $sku;  ?>" placeholder="请输入SKU">
            </div>
        </div>

        <div class="am-form-group am-cf">
            <div class="zuo">主图上传：</div>
            <div class="you" style="height: 45px;">
                <div  class="picbox" style="">
                    <img src="<?php echo base_url();?>/public/assets/image/wsc.png" class="picshow"   style=" " >
                </div>
            <!--    <a href="javascript:" class="file">上传图片
                    <input type="file" name="uploadFile" class="uploadPicButton" id="upload_file">
                </a>-->
            </div>
        </div>

    </form>



</div>

<script>

    $("input").attr("autocomplete","off");
    $("input[name='number']").focus(function () {
        $(this).val("");
    });
    $("input[name='each_single']").focus(function () {
        $(this).val("");
    });

    var picurl="<?php  echo $picurl ?>";
    var picpath="";

    if(picurl!=""){
        $(".picshow").addClass("newpic");
        $(".picshow").attr("src",picurl)
    }


    $(".uploadPicButton").change(function () {
        var pic = $('#upload_file')[0].files[0];
        var fd = new FormData();
        fd.append('uploadFile', pic);
        var url = "<?php echo base_url(); ?>/Business/uppic";

        $.ajax({
            url:url,
            type:"post",
            dataType:"json",
            // Form数据
            data: fd,
            cache: false,
            contentType: false,
            processData: false,
            success:function(data){
                if(data.code==0){
                    $(".picshow").attr("src",data.url);
                    $(".picshow").addClass("newpic");

                    $(".picshow").show();
                    $("input[name=pic]").val(data.url);
                    picpath=data.path;
                    return;
                }
                layer.msg(data.msg);
            }
        });
    });
</script>




